﻿
package com.STS.ELearning.Captivate 
{
	
	public class QuizData
	{
		
		public static const TRUE_OR_FALSE:String = "true-false";
		
		
		public static const MULTIPLE_CHOICE:String = "choice";
		
		
		public static const FILL_IN_THE_BLANK:String = "fill-in";
		
		
		public static const SHORT_ANSWER:String = "long-fill-in";
		
		
		public static const MATCHING:String = "matching";
		
		public static const SEQUENCE:String = "sequencing";
		
	
		public static const RATING_SCALE:String = "likert";
		
		private var _data:Object;
		
		private var _slideNumber:Number;
		private var _questionNumber:Number;
		private var _questionType:String;
		private var _questionAnswered:Boolean;
		private var _questionAnsweredCorrectly:Boolean;
		private var _questionMaxScore:Number;
		private var _questionScore:Number;
		private var _questionMaxAttempts:Number;
		private var _questionAttempts:Number;
		private var _interactionID:String;
		
		
		public function QuizData(data:Object) 
		{
			_data = data;
		}
		
		public function get slideNumber():Number { return _data.slideNumber + 1; }
		
		
		public function get questionNumber():Number { return _data.questionNumber + 1; }
		
		
		public function get questionType():String { return _data.questionType; }
		
		
		public function get questionAnswered():Boolean { return _data.questionAnswered; }
		
		
		public function get questionAnsweredCorrectly():Boolean { return _data.questionAnsweredCorrectly; }
		
		
		public function get questionMaxScore():Number { return _data.questionMaxScore; }
		
		
		public function get questionScore():Number { return _data.questionScore; }
		
		
		public function get questionMaxAttempts():Number { return _data.questionMaxAttempts; }
		
		
		public function get questionAttempts():Number { return _data.questionAttempts; }
		
		public function get interactionID():String { return _data.interactionID; }
		
	}

}